package com.yitao.cms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by skipper on 2019/2/18.
 */
@MapperScan("com.yitao.cms.mapper")
@EntityScan(basePackages = {"com.yitao.client.*","com.yitao.cms.model.*"})
@SpringBootApplication(scanBasePackages = {"com.yitao.cms.*", "com.skipper.*"})
@EnableSwagger2
@EnableAutoConfiguration
@EnableFeignClients
public class YiTaoCmsApplication {

    public static void main(String... args) {
        SpringApplication.run(YiTaoCmsApplication.class,args);
    }

}

